package com.jcfriends.main.user.dao;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.jcfriends.main.user.pojo.UserInfo;

@Repository
public class UserDaoImpl implements UserDao {

	@Autowired
	SqlSessionTemplate sessionTemplate;
	
	public UserInfo getUser(UserInfo userInfo){
		
		return (UserInfo)sessionTemplate.selectOne("UserMapper.getUser", userInfo);
	}
}
